<?php $this->load->view('common/header'); ?>
<?php $this->load->view('common/header-common'); ?>
	<section id="member-changEmail">
		<div class="container">
			<div class="row-fluid">
				<div class="span3">
					<?php $this->load->view('home/left');?>
				</div>
				<div class="span9">
					<form action="<?php echo site_url("home/changeEmail");?>" class="form-horizontal well" method="post">
						<fieldset>
							<legend>更改邮箱</legend>
							<?php if (isset($error)) {?>
							<div class="alert">
		  						<a class="close" data-dismiss="alert">×</a>
		  						<strong>错误</strong> <?php echo $error;?>
							</div>
							<?php }?>
							<div class="control-group">
								<label for="HduPassword" class="control-label">教务密码</label>
								<div class="controls">
									<input type="password" class="input-large" id="HduPassword" name="HduPassword">
									<div class="help-inline"><?php echo form_error("HduPassword");?></div>
									<span class="help-block"></span>
								</div>
							</div>
							<div class="control-group">
								<label for="newEmail" class="control-label">新邮箱</label>
								<div class="controls">
									<input type="email" class="input-large" id="newEmail" name="newEmail">
									<span class="help-inline"><?php echo form_error("newEmail");?></span>
									<span class="help-block"></span>
								</div>
							</div>
							<?php if (isset($success)) { ?>
							<div class="alert alert-success">
								<a class="close" data-dismiss="alert">×</a>
								<strong><?php echo $success; ?></strong>
							</div>
							<?php } ?> 
							<div class="form-actions">
								<button type="submit" class="btn btn-primary">更改</button>
							</div>
						</fieldset>
					</form>
				</div>
			</div>
		</div>
	</section>
</body>
</html>